import React from 'react';
import ReactDOM from 'react-dom';
import appleStore from './components/Apple/store';
import Apple from './components/Apple/apple';
import { observable, computed, action, autorun } from 'mobx';

const store = new appleStore();

// autorun(() => {
//   if (store.isPicking) {
//     console.log('is picking');
//   }
//   console.log(store.apples, 'apples');
// });
console.log(store.apples, 'apples');
ReactDOM.render(<Apple store={store} />, document.getElementById('root'));
